package com.demo.repository;


import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.rest.core.annotation.RestResource;

import com.demo.domain.MobileVerify;

@RestResource(exported = false)
public interface MobileVerifyRepository extends CrudRepository<MobileVerify, String> {
	
	@Query("select count(*) from MobileVerify v where v.deviceId = ?1")
	int countByMobileVerify(String deviceId);
	
	MobileVerify  findByDeviceId(String deviceId);
	
}
